//
//  UINavigationBar_Ht.m
//  WZLProduct
//
//  Created by dllo on 16/3/18.
//  Copyright © 2016年 HaiTeng. All rights reserved.
//

#import "UINavigationBar_Ht.h"

@implementation UINavigationBar_Ht

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor colorWithRed:0.29 green:0.74 blue:0.8 alpha:1];
        self.frame = CGRectMake(0, 0, kScreenWidth, 64);


        
        [self creatSubViews];
    }
    return self;
}

/** 创建所有视图 */
- (void)creatSubViews{
    
}

- (void)setTitleTextFile:(UITextField *)titleTextFile{
    if (titleTextFile) {
        titleTextFile = [[UITextField alloc] initWithFrame:CGRectMake(10, 20, self.width - 10 - 90, 25)];
        [self addSubview:titleTextFile];
        
    }
}

- (void)setRightBarButton:(UIButton *)rightBarButton{
    if (rightBarButton) {
        rightBarButton = [UIButton buttonWithType:UIButtonTypeSystem];
        rightBarButton.frame = CGRectMake(self.width - 90, 20, 80, 25);
        [self addSubview:rightBarButton];
    }
}





@end
